package ru.ifmo.ipimenov.ewf_svn.standalone;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import ru.ifmo.ipimenov.ewf_svn.standalone.view.gui.LoginForm;

import javax.swing.*;

public class App {

    private static Log log = LogFactory.getLog(App.class);

    public static void main(String[] args) {
        log.info("Model initialized");
        log.info("Controller initialized");
        log.info("Initiating view");

        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
            }
        });
    }

    private static void createAndShowGUI() {
        JFrame.setDefaultLookAndFeelDecorated(true);

        JFrame frame = new LoginForm();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        frame.pack();
        frame.setVisible(true);
    }
}

